/*
 * mesQueue.h
 *
 *  Created on: Oct 21, 2009
 *      Author: nreimens
 */

#ifndef MESQUEUE_H_
#define MESQUEUE_H_

typedef struct _MSQNODE {
	int index;
	struct _MSQNODE *next;
	char *message;
} MSQNODE;

typedef struct _MSQUEUE {
	MSQNODE *head;
	MSQNODE *tail;
} MSQUEUE;

void mEnqueue(MSQUEUE *q, int in, char *mess);

int mDequeue(MSQUEUE *q, char *mess);

int mDequeuen(MSQUEUE *q, int n, char *mess);


void mQueueInit(MSQUEUE **q);

#endif /* MESQUEUE_H_ */
